package com.mcf.xiaolinju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mcf
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Notices implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 类型（0：公告，1：活动）
     */
    private Integer noticestype;
    /**
     * 公告标题
     */
    private String title;

    /**
     * 公告的内容
     */
    private String notice;

    /**
     * 开始时间
     */
    private LocalDate starttime;

    /**
     * 结束时间
     */
    private LocalDate endtime;
    /**
     * 创建人id
     */
    private Integer createid;

    /**
     * 小区id
     */
    private Integer villageid;

    /**
     * 创建时间
     */
    private LocalDateTime createtime;

    /**
     * 修改者id
     */
    private Integer updateid;

    /**
     * 修改时间
     */
    private LocalDateTime updatetime;

    /**
     * 撤回的标志（0为撤回，1：撤回）
     */
    private Integer undostatus;

    /**
     * 删除的标志(0:未删除，1：删除）
     */
    private Integer del;




    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return noticestype;
    }

    public void setType(Integer noticestype) {
        this.noticestype = noticestype;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public LocalDate getStarttime() {
        return starttime;
    }

    public void setStarttime(LocalDate starttime) {
        this.starttime = starttime;
    }

    public LocalDate getEndtime() {
        return endtime;
    }

    public void setEndtime(LocalDate endtime) {
        this.endtime = endtime;
    }



    public Integer getCreateid() {
        return createid;
    }

    public void setCreateid(Integer createid) {
        this.createid = createid;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public Integer getUpdateid() {
        return updateid;
    }

    public void setUpdateid(Integer updateid) {
        this.updateid = updateid;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getUndostatus() {
        return undostatus;
    }

    public void setUndostatus(Integer undostatus) {
        this.undostatus = undostatus;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getVillageid() {
        return villageid;
    }

    public void setVillageid(Integer villageid) {
        this.villageid = villageid;
    }

    @Override
    public String toString() {
        return "Notices{" +
                "id=" + id +
                ", noticestype=" + noticestype +
                ", title='" + title + '\'' +
                ", notice='" + notice + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", createid=" + createid +
                ", villageid=" + villageid +
                ", createtime=" + createtime +
                ", updateid=" + updateid +
                ", updatetime=" + updatetime +
                ", undostatus=" + undostatus +
                ", del=" + del +
                '}';
    }
}
